package com.financing.wap.dao;

import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.financing.wap.dto.YouDanAmountDTO;
import com.financing.wap.vo.YouDanAmountVO;

public interface IYouDanAmountDao extends IBaseDao{
	/**
	 * 添加有单金额明细
	 * @param youDanAmountDTO
	 * @return
	 */
	public Integer insertYouDanAmount(YouDanAmountDTO youDanAmountDTO) throws SQLException;
	
	public int updateYouDanAmount(YouDanAmountDTO youDanAmount) throws SQLException;

	public List<YouDanAmountDTO> getYouDanAmount(YouDanAmountVO youDanAmount) throws SQLException;

	public BigDecimal getBaoZhengJinAmount(Map<String, Object> map);

	public BigDecimal getCommissionAmount(Map<String, Object> map);
	
	public Integer getYouDanAmountCount(YouDanAmountVO youDanAmount) throws SQLException;
	
}
